<?php

namespace Data;

use \Lib\Db\Mysql as Mysql;

class Base extends Mysql {

    private $redis;

    const IS_YES = 1;

    const IS_NO = 0;

    /**
     * 性别男
     */
    const SEX_BOY = 1;

    /**
     * 性别女
     */
    const SEX_GIRL = 2;

	/**
	 * 施工企业
	 */
	const TYPE_CONSTRUCTION = 1;

	/**
	 * 设计施工一体化
	 */
	const TYPE_DESIGN_CONSTRUCTION = 2;

	/**
	 * 监理企业
	 */
	const TYPE_MANAGE_CONSTRUCTION = 3;

	/**
	 * 建筑业企业
	 */
	const TYPE_BUILDING = 4;

	/**
	 * 检测企业
	 */
	const TYPE_CHECK = 5;

	/**
	 * 入川企业
	 */
	const TYPE_OUT_SC = 100;

    /**
     * @return \Lib\Db\Redis
     */
    protected function getRedis() {
        if ($this->redis) {
            return $this->redis;
        }
        $this->redis = \Lib\Db\Redis::instance();
        return $this->redis;
    }
}